//
//  MZDemoSupprot.h
//  MZBaseDemo
//
//  Created by Chris Yang on 2016/12/5.
//  Copyright © 2016年 Chris Yang. All rights reserved.
//

#import <UIKit/UIKit.h>

#define mzDemoQuickColor(hex, alp) \
[UIColor colorWithRed:((hex & 0xFF0000) >> 16) / 255.0f \
green:((hex & 0xFF00) >> 8) / 255.0f \
blue:(hex & 0xFF) / 255.0f \
alpha:alp]

#define mzDemoRandColor(alp) mzDemoQuickColor((rand() % 0xffffff), alp)

#define mzDemoBgColor        mzDemoQuickColor(0x8ffff3, 0.8)
#define mzDemoBgColorGray    mzDemoQuickColor(0xefefef, 0.8)
#define mzDemoBorderColor    mzDemoQuickColor(0xa5ef54, 0.8)
#define mzDemoTextColorGreen mzDemoQuickColor(0x30c95a, 0.8)
#define mzDemoTextColorRed   mzDemoQuickColor(0xc9403d, 0.8)
#define mzDemoTextColorBlack mzDemoQuickColor(0x4a4a4a, 0.8)
#define mzDemoTextColorGray  mzDemoQuickColor(0xefefef, 0.8)

@interface MZDemoSupprot : NSObject

+ (UIScrollView *)mzDemoScrollView;

+ (UIView *)mzDemoView;
+ (UIButton *)mzDemoButton;
+ (UILabel *)mzDemoLabel;
+ (UITextField *)mzDemoField;

@end
